<template>
  <div class="index">
    <div class="left">
      <img src="@/assets/img/login-banner.png" alt="" class="img" />
    </div>
    <div class="right">
      <router-view></router-view>
      <footer-view></footer-view>
    </div>
  </div>
</template>
<script>
import FooterView from './components/FooterView'
export default {
  name: 'LoginView',
  components: { FooterView },
  data () {
    return {
      form: {},
      rules: {
        name: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
        password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
      },
      isLogin: false
    }
  },
  methods: {
    changeLogin () {
      this.isLogin = !this.isLogin
    }
  }
}
</script>

<style scoped lang="scss">
.index {
  height: 100vh;
  width: 100vw;
  display: flex;
  .left {
    width: 41.66666667%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f0f2f5;
    .img {
      width: 95%;
      margin-top: 129px;
    }
  }
  .right {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  ::v-deep .el-input__inner:focus {
    border-color: #28debc;
    box-shadow: 0 0 0 2px rgba(4, 209, 179, 0.2);
    outline: 0;
  }
}
</style>
